package com.cutefool.samples.transactional.scene03;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Slf4j
@Service
public class Demo04Wrong {
    @Transactional(rollbackFor = Exception.class)
    public void m2() {
        try {
            // doSomething
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }
    }
}
